#pragma once
#include "macro.h"

/* c++11 后引入了新的std::mutex 性能更好推荐使用！ */

class XXX_API Mutex
{
public:
    Mutex();
    ~Mutex();

    /* Acquire the mutex. Block if already acquired.*/
    void Acquire();
    /* Try to acquire the mutex without locking. Return true if successful. */
    bool TryAcquire();

    /* Release the mutex*/
    void Release();

private:
    /*mutex handle*/
    void *__handle__;
};